home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / lamstex / dvipaste.patch.01 < prev    next >
Text File  |  1993-06-03  |  1KB  |  77 lines

  1. This should fix dvipaste.c so that it will work on big-endian
  2. machines as well.
  3.  
  4.     Ed Sznyter
  5.     ews@babel.COM
  6.     Jun 3, 1993
  7.  
  8. *** dvipaste.c.new    Thu Jun  3 09:30:02 1993
  9. --- dvipaste.c    Thu Jun  3 09:29:23 1993
  10. ***************
  11. *** 338,347 ****
  12.   int num;
  13.   FILE *f;
  14.   {
  15. !    char *p;
  16. !    p=(char *)#
  17. !    PutByte(*(p+1), f);
  18. !    PutByte(*p, f);
  19.      return;
  20.   }    
  21.   
  22. --- 346,353 ----
  23.   int num;
  24.   FILE *f;
  25.   {
  26. !    PutByte( (num>>8) , f);
  27. !    PutByte( (num>>0) , f);
  28.      return;
  29.   }    
  30.   
  31. ***************
  32. *** 351,360 ****
  33.   FILE *f;
  34.   {
  35.      int i;
  36. !    char *p;
  37. !    p = (char *)&trio;
  38. !    for (i=2; i>=0; i--)
  39. !        PutByte( *(p+i), f);
  40.      return;
  41.   }
  42.   
  43. --- 357,365 ----
  44.   FILE *f;
  45.   {
  46.      int i;
  47. !    PutByte( (trio>>16) , f);
  48. !    PutByte( (trio>>8) , f);
  49. !    PutByte( (trio>>0) , f);
  50.      return;
  51.   }
  52.   
  53. ***************
  54. *** 362,372 ****
  55.   long quad;
  56.   FILE *f;
  57.   {
  58. !    int i;
  59. !    char *p; 
  60. !    p = (char *)&quad;
  61. !    for (i=3; i>=0; i--)
  62. !         PutByte( *(p+i), f );
  63.      return;
  64.   }
  65.   
  66. --- 367,376 ----
  67.   long quad;
  68.   FILE *f;
  69.   {
  70. !    PutByte( (quad>>24) , f);
  71. !    PutByte( (quad>>16) , f);
  72. !    PutByte( (quad>>8) , f);
  73. !    PutByte( (quad>>0) , f);
  74.      return;
  75.   }
  76.   
  77.